package com.xgjweb.fsi.action;

import java.util.List;

import com.xgjweb.common.action.XgjWebAction;
import com.xgjweb.fsi.domain.Journal;
import com.xgjweb.fsi.domain.Message;
import com.xgjweb.fsi.dto.MessageDto;
import com.xgjweb.fsi.service.IMessageService;

public class MessageAction extends XgjWebAction {
	IMessageService messageService;

	public void setMessageService(IMessageService messageService) {
		this.messageService = messageService;
	}

	/**
	 * 查旬留言
	 */
	public List<Message> queryMessage(Message message) throws Exception {
		return messageService.queryMessage(message);
	}

	/**
	 * 添加留言
	 * 
	 * @param message
	 * @return
	 * @throws Exception
	 */
	public List<Message> addMessage(Message message) throws Exception {
		return messageService.addMessage(message);
	}

	/**
	 * 查找留言
	 * 
	 * @return
	 * @throws Exception
	 */
	public MessageDto findMessageIndex() throws Exception {
		return messageService.findMessageIndex();
	}

	/**
	 * 删除留言
	 * 
	 * @param message
	 * @return
	 * @throws Exception
	 */
	public Boolean deleteMessage(Message message) throws Exception {
		return messageService.deleteMessage(message);
	}
}
